var ChooseLevelScene = cc.Scene.extend({
    backgroundlayer: null,
    uilayer:null,
    ctor:function () {
        cc.log("====ChooseLevelScene ctor=======");
        this._super();

    },

    onEnter:function () {
        cc.log("====ChooseLevelScene onEnter=======");
        this._super();
        //加载【资源】
        this.loadResource();
        //加载【背景层】
        this.loadBackgroundLayer();
        //加载【主层】
        this.loadMainLayer();
    },

    loadResource:function(){//addSpriteFrames
        cc.spriteFrameCache.addSpriteFrames(res.cl_route_plist,res.cl_route_png);
    },

    //加载背景层
    loadBackgroundLayer:function () {
        this.backgroundlayer = new CLBackgroundLayer();
        this.addChild(this.backgroundlayer);
    },

    //加载主层
    loadMainLayer:function () {
        this.uilayer = new CLUILayer();
        this.addChild(this.uilayer);
    },

});